import request from '@/utils/request'
// 老师信息的增删改查
export function TeacherList(data, pageNum, pageSize) {
  return request({
    url: 'api/admin/teacher/TeacherList',
    method: 'POST',
    data,
    headers: { pageNum: pageNum, pageSize: pageSize }
  })
}
export function addTeacher(data) {
  return request({
    url: 'api/admin/teacher/addTeacher',
    method: 'POST',
    data
  })
}
export function updateTeacher(data) {
  return request({
    url: 'api/admin/teacher/updateTeacher',
    method: 'POST',
    data
  })
}
export function TeacherInfo(data) {
  return request({
    url: 'api/admin/teacher/TeacherInfo',
    method: 'POST',
    data
  })
}
export function removeTeacher(data) {
  return request({
    url: 'api/admin/teacher/removeTeacher',
    method: 'POST',
    data
  })
}
export function getLeaderList(data, pageNum, pageSize) {
  return request({
    url: 'api/admin/shop_expand/getLeaderList',
    method: 'POST',
    data,
    headers: { pageNum: pageNum, pageSize: pageSize }
  })
}
export function addOrUpdLeader(data) {
  return request({
    url: 'api/admin/shop_expand/addOrUpdLeader',
    method: 'POST',
    data
  })
}
export function getLeaderInfo(data) {
  return request({
    url: 'api/admin/shop_expand/getLeaderInfo',
    method: 'POST',
    data
  })
}
export function delLeader(data) {
  return request({
    url: 'api/admin/shop_expand/delLeader',
    method: 'POST',
    data
  })
}
